<?php

/**
 * 对应数据库中的User表
 *
 * @author ddj
 */
class User {
    private $name;
    private $password;
    
    public function __construct($name=null, $password=null) {
        $this->name=$name;
        $this->password=$password;
    }
    
    function __get($propertyName) {
        if(isset($this->$propertyName)){
            return $this->$propertyName;
        }else{
            //
            return NULL;
        }
    }
    
    function __set($propertyName, $value) {
        $this->$propertyName = trim($value);
    }
    
}
